package cn.kgc.springbootdemo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <h3>springbootdemo</h3>
 * <p>修改用户密码表单</p>
 *
 * @author : DongZeJian
 * @date : 2020-05-01 15:36
 **/
@ApiModel(value = "修改用户密码表单")
@Data
public class UpdateUserPasswrod implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户Id",name = "id")
    @NotBlank(message = "用户ID不能为空")
    private String id;

    /**
     * 原密码
     */
    @ApiModelProperty(value = "原密码",name = "originalPassWrod")
    @NotBlank(message = "原密码不能为空")
    private String originalPasswrod;

    /**
     * 新密码
     */
    @ApiModelProperty(value = "新密码",name = "passwrod")
    @Size(min = 6,message = "密码不能小于六位数")
    private String passwrod;
}
